<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":"
            + request.getServerPort() + path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<link type="text/css" rel="stylesheet" href="<%=path%>/css/reset.css" />
		<link type="text/css" rel="stylesheet" href="<%=path%>/css/sideR.css" />
	<link href="<%=path%>/css/main.css" type="text/css" rel="stylesheet"/>	
	
		<script type="text/javascript">         
	         var sysPath = "<%=path%>";
	         var _param_ = "";
	    </script>
		<script language="JavaScript" src="<%=path%>/js/jquery-1.3.1.min.js"
			type="text/JavaScript" charset="utf-8"></script>

		<script language="JavaScript" src="function.js" type="text/JavaScript"
			charset="utf-8"></script>
		<title>添加页面</title>
	</head>

	<body>

		<f:view>
			<h:form id="functionForm">
				<div class="cont2">
  <div class="table2">
    <div class="title1Bg">
     <div class="title1 f14"><strong>添加</strong><span class="f12 fright"><h:commandLink action="#{functionBean.save}"
										styleClass="buts but2" value="保存">
														</h:commandLink>
	   <h:commandLink value="返回"  styleClass="buts but6" action="#{functionBean.backToSearch}" />       
	 </span></div>
	</div>
	 <div class="cont3Bg">
      <div class="cont3Bg2">
					<table width="100%" border="0" cellpadding="0" cellspacing="0" class="cont4">
						 <tr><td colspan="2" class="td3" height="1"></td></tr>
          <tr>
            <td class="td1 f14"><span>*</span>功能编号</td>
            <td> <h:inputText id="funcCode" size="35" value="#{functionBean.funcCode}"   styleClass="input2" required="true" > 
             </h:inputText> <span class="red"> <h:message for="funcCode"></h:message>* </span>&nbsp;
             </td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>
         
          <tr>
            <td class="f14">功能名称</td>
            <td> <h:inputText id="name"   styleClass="input2" value="#{functionBean.funName}" required="false"> 
             </h:inputText></td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>
          <tr>
            <td class="f14">功能描述</td>
            <td> 
           <h:inputText id="describe" size="35"  styleClass="input2" value="#{functionBean.describe}" required="false"> 
             </h:inputText></td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>
          <tr>
            <td class="f14">功能页面</td>
            <td> 
           <h:inputText id="pageUrl" size="35"  styleClass="input2" value="#{functionBean.pageUrl}" required="false"> 
             </h:inputText></td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>
				 <tr>
            <td class="f14">功能层级</td>
            <td> 
           <h:inputText id="funcLevel" size="35"  styleClass="input2" value="#{functionBean.funcLevel}" required="false"> 
             </h:inputText></td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>
           <tr>
            <td class="f14">功能状态</td>
            <td> 
           <h:inputText id="funStatus" size="35"  styleClass="input2" value="#{functionBean.funStatus}" required="false"> 
             </h:inputText></td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>
           <tr>
            <td class="f14">父功能菜单</td>
            <td> 
           <h:inputText id="fatherName" size="35"  styleClass="input2" value="#{functionBean.fatherFunCode}" required="false"> 
             </h:inputText></td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>	
           <tr>
            <td class="f14">对于父级的排序</td>
            <td> 
           <h:inputText id="funOrder" size="35"  styleClass="input2" value="#{functionBean.funOrder}" required="false"> 
             </h:inputText></td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>		
					</table>
				 </div>
				</div>
            </div>
          </div>
		</h:form>
	</f:view>
</body>
</html>
